<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/9
 * Time: 14:10
 */
class RedisService
{

    private function zAddNative($key, $score, $member)
    {
        $this->redis->zAdd($key, $score, $member);
    }

    private function zRangeNative($key, $start, $end, $withscores = false)
    {
        $this->redis->zRange($key, $start, $end, $withscores);
    }

    private function zDeleteNative($key, $member)
    {
        $this->redis->zDelete($key, $member);
    }

    private function zRevRangeNative($key, $start, $end, $withscores = false)
    {
        $this->redis->zRevRange($key, $start, $end, $withscores);
    }

    private function zCountNative($key, $star, $end)
    {
        $this->redis->zCount($key, $star, $end);
    }

    private function hMsetNative($key, $arr)
    {
        $this->redis->hMset($key, $arr);
    }

    private function hMGetNative($key, $fieldsArr)
    {
        $this->redis->hMGet($key, $fieldsArr);
    }

    private function hIncrByNative($key, $field, $value)
    {
        $this->redis->hIncrBy($key, $field, $value);
    }

    private function hGetAllNative($key)
    {
        $this->redis->hGetAll($key);
    }
}